package priv.mill.homework03;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component
public class Villa {
	@Autowired
	private Servanter servanter;

	public Villa() {

	}

	public Villa(Servanter servanter) {
		this.servanter = servanter;
	}

	public Servanter getServanter() {
		return servanter;
	}

	public void setServanter(Servanter servanter) {
		this.servanter = servanter;
	}

	@Override
	public String toString() {
		return "Villa [servanter=" + servanter + "]";
	}
	
}
